1
Establishing Your Identity: Global Configuration
AI016 Lesson 2
00:00

Before Git can track changes or facilitate collaboration, it requires a verified digital signature to attribute every action to a specific author. Establishing your global configuration is a prerequisite step that embeds your identity into the metadata of every commit.

1. The Identity Setup

Git utilizes the following commands to label your work. Without these, Git will often block the commit process to prevent anonymous snapshots.

git config --global user.name "Your Name"
git config --global user.email [email protected]

2. The Scope of the Flag

The --global flag tells Git to use this configuration as a default for all of your repositories. These settings are stored in a central file (typically ~/.gitconfig) rather than a single project folder.

Global ConfigRepo ARepo BRepo C

3. Environment Consistency

For Windows users, installing Git provides a special command shell called Git Bash. You should be using this shell instead of the native command prompt to ensure command syntax consistency and access to standard Git utilities.

Verification example output: git version 1.7.10.2 (Apple Git-33)

main.py
TERMINAL bash — 80x24
> Ready. Click "Run" to execute.
>